from django.urls import path, re_path
from rest_framework_jwt.views import obtain_jwt_token
from . import views


urlpatterns = [
    re_path(r'^sms_codes/(?P<mobile>1[3-9]\d{9})/$', views.SMSCodeView.as_view()),
    re_path(r'^users/$', views.CreateUserView.as_view()),
    re_path(r'^authorizations/$', obtain_jwt_token),
    re_path(r'upload/avatar/$', views.UploadAvatarView.as_view()),
    re_path(r'upload/common/$', views.UploadCommonView.as_view()),
    re_path(r'weibo/loginurl/$', views.WeiBoUrlView.as_view()),
    re_path(r'oauth_callback/$', views.WeiboOauthView.as_view()),
]

